package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * role（角色表）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("role")
@ApiModel(value = "Role对象", description = "role（角色表）")
public class Role extends Model<Role> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色流水号")
    @TableId("role_id")
    private String roleId;

    @ApiModelProperty(value = "角色名称")
    @TableField("role_name")
    private String roleName;

    @ApiModelProperty(value = "角色标识")
    @TableField("role_code")
    private String roleCode;

    @ApiModelProperty(value = "角色备注")
    @TableField("role_remarks")
    private String roleRemarks;

    @ApiModelProperty(value = "是否有效：0有效、1无效")
    @TableField("is_enable")
    private Boolean isEnable;

    @TableField("create_user_id")
    private String createUserId;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_user_id")
    private String updateUserId;

    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.roleId;
    }

}
